<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
</head>

<body>
    <script type="text/javascript">
        let sum = 0;
        let j = 1;
        let i = 1;

        while (i <= 100) {
            j = i * j;
            sum = sum + j;
            i++;
        }
        console.log(sum);
    </script>
</body>

</html>